const menuList = (options) => {
    return {
        status: 200,
        message: 'success',
        data: {
            // 此处数据作为菜单示例数据
            menuList: [
                {
                    pId: 10,
                    id: 998,
                    title: '测试饼图',
                    iconName: 'Menu',
                    path: '/todayAppointment',
                    keepAlive: false
                },
                {
                    pId: 10,
                    id: 999,
                    title: 'demo组件测试使用',
                    iconName: 'Menu',
                    path: '/demo',
                    keepAlive: false
                },
                {
                    pId: 10,
                    id: 1000,
                    title: '系统首页',
                    iconName: 'Menu',
                    path: '/home',
                    keepAlive: false
                },
                {
                    pId: 10,
                    id: 1001,
                    title: '系统基础配置',
                    iconName: 'Tools',
                    path: '/system/',
                    children: [
                        {
                            pId: 1001,
                            id: 1001001,
                            title: '菜单管理',
                            iconName: '',
                            path: '/system/menus',
                            keepAlive: false,
                            btnGroup: [
                                { id: 100100101, name: '新增', flag: true },
                                { id: 100100102, name: '修改', flag: false },
                                { id: 100100103, name: '删除', flag: false }
                            ]
                        },
                        {
                            pId: 1001,
                            id: 1001002,
                            title: '组织管理',
                            iconName: '',
                            path: '/system/orgs',
                            keepAlive: false,
                            btnGroup: [
                                { id: 100100201, name: '新增', flag: true },
                                { id: 100100202, name: '修改', flag: true },
                                { id: 100100203, name: '删除', flag: false }
                            ]
                        },
                        {
                            pId: 1001,
                            id: 1001003,
                            title: '部门管理',
                            iconName: '',
                            path: '/system/depts',
                            keepAlive: false,
                            btnGroup: [
                                { id: 100100301, name: '新增', flag: true },
                                { id: 100100302, name: '修改', flag: true },
                                { id: 100100303, name: '删除', flag: false }
                            ]
                        },
                        {
                            pId: 1001,
                            id: 1001004,
                            title: '角色管理',
                            iconName: '',
                            path: '/system/roles',
                            keepAlive: false,
                            btnGroup: [
                                { id: 100100401, name: '新增', flag: true },
                                { id: 100100402, name: '修改', flag: false },
                                { id: 100100403, name: '删除', flag: false }
                            ]
                        },
                        {
                            pId: 1001,
                            id: 1001005,
                            title: '用户信息',
                            iconName: '',
                            path: '/system/userInfos',
                            keepAlive: false,
                            btnGroup: [
                                { id: 100100501, name: '新增', flag: true },
                                { id: 100100502, name: '修改', flag: false },
                                { id: 100100503, name: '删除', flag: false }
                            ]
                        },
                        {
                            pId: 1001,
                            id: 1001006,
                            title: '日志管理',
                            iconName: '',
                            path: '/system/logs',
                            keepAlive: false,
                            btnGroup: [
                                { id: 100100601, name: '新增', flag: true },
                                { id: 100100602, name: '修改', flag: false },
                                { id: 100100603, name: '删除', flag: false }
                            ]
                        }
                    ]
                },
                {
                    pId: 10,
                    id: 1002,
                    title: '库存管理',
                    iconName: 'Goods',
                    path: '/inventory/',
                    children: [
                        {
                            pId: 1002,
                            id: 1002001,
                            title: '仓库管理',
                            iconName: '',
                            path: '/inventory/store',
                            keepAlive: false,
                            btnGroup: [
                                { id: 100200101, name: '新增', flag: true },
                                { id: 100200102, name: '修改', flag: false },
                                { id: 100200103, name: '删除', flag: false }
                            ]
                        },
                        {
                            pId: 1002,
                            id: 1002002,
                            title: '物料管理',
                            iconName: '',
                            path: '/inventory/material',
                            keepAlive: false,
                            btnGroup: [
                                { id: 100200201, name: '新增', flag: true },
                                { id: 100200202, name: '修改', flag: false },
                                { id: 100200203, name: '删除', flag: false }
                            ]
                        }
                    ]
                }
            ]
        }
    }
}

export default {
    'get|/api/testStudy/service/menuList': (options) => menuList(options)
}
